<template>
  <div class="dashboard">
    <h2>dashboard</h2>
  </div>
</template>

<script lang="ts" setup  >
import { defineComponent } from 'vue'
import { useRoute } from 'vue-router'

defineComponent({
  name: 'dashboard'
})

// 确保 route 对象存在
const route = useRoute()
console.log(route.path)

</script>

<style scoped></style>
